home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19980901-19981211
/
000035_news@newsmaster….columbia.edu _Wed Sep 16 00:46:23 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id AAA00203
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 16 Sep 1998 00:46:23 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id AAA12330
for kermit.misc@watsun; Wed, 16 Sep 1998 00:46:22 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!jaltman
From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: set login userid \%1 not working
Date: 16 Sep 1998 04:46:20 GMT
Organization: Columbia University
Lines: 32
Message-ID: <6tnfqs$im0$1@apakabar.cc.columbia.edu>
References: <35FF2D1E.D61C80CA@thermeon.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:9205
In article <35FF2D1E.D61C80CA@thermeon.com>,
Scott Sampson <ssampson@thermeon.com> wrote:
: Using K95, I want to prompt user for name before making SRP telnet
: connection. I am unable to make the variable entered in the 'ask'
: command work in the 'set login userid' command. Does someone have an
: example to show how it is done?
:
I do not remember why command quoting is turned off for the
SET LOGIN USER and SET TELNET ENVIRONMENT USER commands but
it is and the result is that those commands will not evaluate
variables.
However, all is not lost. You can do what you want in a slightly
roundabout manner.
ASK \%1 {Username? }
ASSIGN SET_LOGIN_USER SET LOGIN USER \%1
DO SET_LOGIN_USER
UNDEF SET_LOGIN_USER
What this sequence does is create a macro called SET_LOGIN_USER
whose definition is "SET LOGIN USER <name>" where <name> is
the contents of \%1 as retrieved in the ASK command. The DO
command is then used to execute the macro definition and UNDEF
is used to undefine the macro.
Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
The Kermit Project * Columbia University
612 West 115th St #716 * New York, NY * 10025
http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org